﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Avalonia.Data.Converters;
using ExCSS;

namespace 畜牧业审核程序国产.Models.RagModel.SenderConverter
{
    internal class RagModelToVisibilityConverter : IValueConverter
    {
        public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
        {
            // 确保 value 是 string 类型
            var ragModel = value as string;

           
            return ragModel.Contains( "通义千问业务知识库")|| ragModel.Contains("通义千问统计法律知识库");
        }

        public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
